package com.iris.live.services.data.models;

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.persistence.*;

/**
 * Created by xin on 2016/7/11.
 */
@SuppressWarnings("JpaDataSourceORMInspection")
@Entity
@Table(name = "LSH区域", schema = "sg_lsh", catalog = "")
@IdClass(Lsh区域ModelPK.class)
public class Lsh区域Model {
    private String 大区;
    private String 小区;

    @Id
    @Column(name = "大区")
    public String get大区() {
        return 大区;
    }

    public void set大区(String 大区) {
        this.大区 = 大区;
    }

    @Id
    @Column(name = "小区")
    public String get小区() {
        return 小区;
    }

    public void set小区(String 小区) {
        this.小区 = 小区;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Lsh区域Model that = (Lsh区域Model) o;

        if (大区 != null ? !大区.equals(that.大区) : that.大区 != null) return false;
        if (小区 != null ? !小区.equals(that.小区) : that.小区 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = 大区 != null ? 大区.hashCode() : 0;
        result = 31 * result + (小区 != null ? 小区.hashCode() : 0);
        return result;
    }
}
